package com.lc.run;

import javax.naming.InitialContext;
import javax.naming.NamingException;

import com.lc.jpa.Users;
import com.lc.jpa.dao.UsersManager;

public class UsersManager2BeanTest {

	public static void main(String[] args) throws NamingException {
		InitialContext context = new InitialContext();

		UsersManager usersManager = (UsersManager) context
				.lookup("UsersManager2Bean/remote");

		Users user = new Users();
		user.setName("芊胩2");
		usersManager.addUser(user);
		System.out.println("调用完成!");
	}

}
